import request from '@/utils/request'

// 查询测量单列表
export function listBizMeasure (query) {
  return request({
    url: '/biz/bizMeasure/list',
    method: 'get',
    params: query
  })
}

// 查询测量单详细
export function getBizMeasure (id) {
  return request({
    url: '/biz/bizMeasure/' + id,
    method: 'get'
  })
}

// 新增测量单
export function addBizMeasure (data) {
  return request({
    url: '/biz/bizMeasure',
    method: 'post',
    data: data
  })
}

// 修改测量单
export function updateBizMeasure (data) {
  return request({
    url: '/biz/bizMeasure',
    method: 'put',
    data: data
  })
}

// 删除测量单
export function delBizMeasure (id) {
  return request({
    url: '/biz/bizMeasure/' + id,
    method: 'delete'
  })
}


// 导出测量单
export function exportBizMeasure (query) {
  return request({
    url: '/biz/bizMeasure/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/biz/bizMeasure/getInitData/' + dictTypes,
    method: 'get'
  })
}
